<?php

session_start();

$_SESSION['AgentID'] = $_POST['AgentID'];


	include("mysql_connect.php");
	
//	$_SESSION['PropertyId'] = $_POST['arg'];

//	$strKeyWord = $_SESSION['AgentID'];

	$strSqlCommand = 'SELECT FirstName, LastName, REOffice_idREOffice
					  FROM REAgent
					  WHERE AgentID = "'. $_SESSION['AgentID'].'"';

	$result = mysql_query($strSqlCommand);
	$rowDetail = @mysql_fetch_array($result);	

	$_SESSION['OfficeID'] = $rowDetail['REOffice_idREOffice'];

//	echo $strSqlCommand. " ". $_SESSION['AgentID']. " ". $_SESSION['REOffice_idREOffice'];
//	$strAddress = $rowDetail[0]. ' '.$rowDetail[1] . ' ' . $rowDetail[2] . ' ' . $rowDetail[3];
//	$_SESSION["MapAddress"] = str_replace( " ","+", $strAddress);

	//<a data-role="button" data-direction="reverse" data-transition="fade" data-theme="a" href="#page13">View Broker</a>
	//<div class="ui-grid-a">
	echo '
		<div class="ui-block-a agent-image"><img src="images/agent.gif" /></div>
		<div class="ui-block-b agent-info">
			<div>
				<p class="agent-name">'. $rowDetail['FirstName']. ' '. $rowDetail['LastName'] .'</p>
				<p>Licensed Real Estate saleperson</p>
			</div>
		</div>
	';
//	</div>

//	<a data-role="button" data-transition="fade" href="#page11">About Me</a>
//	<a data-role="button" data-transition="fade" href="#page11">My Testimonials</a>
//	<a data-role="button" data-transition="fade" href="#page11">Email Me</a>
//	<a data-role="button" data-transition="fade" href="#page11">Add me to your Contacts</a>';


?>